﻿using System;
using System.Collections.Generic;
using System.Text;

using MT.eVotePRS.Model;

namespace MT.eVotePRS.Device
{
    public delegate void ARSReceivedHandler(object sender, ARSEventArgs e);

    public delegate void ARSRegisteredHandler(object sender, ARSRegisterEventArgs e);

    public class ARSEventArgs : EventArgs
    {
        HandsetData keypadData;
        public ARSEventArgs(object args)
        {
            keypadData = (HandsetData)args;
        }

        public object ReceivedData
        {
            get { return keypadData; }
            set { keypadData = (HandsetData )value; }
        }
    }

    public class ARSRegisterEventArgs : EventArgs
    {
        bool _Registered;
        string _id;
        public ARSRegisterEventArgs(object args, object id)
        {
            _Registered = (bool)args;
            _id = (string)id;
        }

        public object Registered
        {
            get { return _Registered; }
            set { _Registered = (bool)value; }
        }

        public object Id
        {
            get { return _id; }
            set { _id = (string)value; }
        }
    }    
}
